package com.aigis.big4.tmp.javase;

import java.util.Scanner;

public class MinT {
    public static void main(String[] args) {
        int count = 0;
        System.out.println("输入长度：" );
        Scanner scanner = new Scanner(System.in);
        count = scanner.nextInt();
        int[][] members = new int[count][count];
        System.out.println("输入元素：" );
        for (int i = 0; i < count; i++) {
            for (int j = 0; j < count; j++) {

                members[i][j]=scanner.nextInt();
            }
        }
        System.out.println("输出元素：" );
        for(int i=0;i<count;i++){
            System.out.print(count+" ");
            for (int j=0;j<count;j++){
                if (j!=count-1){
                    System.out.print(members[i][j]+" ");
                }else {
                    System.out.print(members[i][j]+"\n");
                }
            }
        }
        System.out.println("计算周期：" );
        for(int i=0;i<count;i++){
           int T=(members[i][count-1]-members[i][0])/2;
           System.out.println(T);
        }
    }
}
